From 1ff82de18ce45962df96cee54aae27b651caab24 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 31 Oct 2005 22:04:44 +0000 Subject: [PATCH] Skip 'Full path to XCSV style file' for all but xcsv itself. --- gpsbabel/vecs.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gpsbabel/vecs.c b/gpsbabel/vecs.c index 7b5c6c08d..4e0cbd1e1 100644 --- a/gpsbabel/vecs.c +++ b/gpsbabel/vecs.c @@ -712,8 +712,16 @@ sort_and_unify_vecs(int *ctp) /* Reset file type to inherit ff_type from xcsv for everything * except the xcsv format itself, which we leave as "internal" */ - if (strcmp(svec->name, "xcsv")) + if (strcmp(svec->name, "xcsv")) { + int n; svp[i]->vec->type = xcsv_file.type; + /* Skip over the first help entry for all but the + * actual 'xcsv' format - so we don't expose the + * 'full path to xcsv style file' argument to any + * GUIs for an internal format. + */ + svp[i]->vec->args++; + } svp[i]->desc = xcsv_file.description; } -- 2.30.2